const routes = [
  //登录页面LoginLayout
  {
    path: '/login',
    component: () => import('layouts/LoginLayout.vue'),
    children: [{
      path: '',
      name: 'Login',
      component: () => import('pages/LoginIndexPage.vue'),
      meta: {
        title: '一方映画--登录'
      }

    }]

  },
  //首页MainLayout

  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [{
      path: '',
      component: () => import('pages/ProjectIndexPage.vue'),
      meta: {
        title: '一方映画--首页'
      },

    },
    //应用页面
    {
      path: '/app',
      component: () => import('pages/AppIndexPage.vue'),
    },
    // {
    //   path: '/app',
    //   component: () => import('pages/app'),
    //   children: [{
    //     path: '',
    //     component: () => import('pages/app/home'),
    //   },
    //   {
    //     path: '/app/reimburse',
    //     component: () => import('pages/app/reimburse'),
    //   },
    //   {
    //     path: '/app/reimdetail/:frid',
    //     component: () => import('pages/app/reimdetail'),
    //   },
    //   {
    //     path: '/app/assets',
    //     component: () => import('pages/app/assets'),
    //   },
    //   {
    //     path: '/app/assets/:aid',
    //     component: () => import('pages/app/assetsdetail'),
    //   }
    //   ]
    // },
    {
      path: '/user',
      component: () => import('pages/user'),
      children: [{
        path: '',
        component: () => import('pages/user/home')
      },
      {
        path: '/user/settings',
        component: () => import('pages/user/settings')
      }
      ]

    },
    {
      path: '/wechathome',
      component: () => import('pages/wechat/home'),

    },
      // {
      //   path: '/login',
      //   component: () => import('pages/login')
      // },

    ]
  },
  //项目工作间StudioLayout
  {
    path: '/studio/:pid',
    component: () => import('layouts/StudioLayout.vue'),
    children: [{
      path: '',
      component: () => import('pages/studio/StudioIndex.vue'),

    },
    {
      path: '/works/:pid',
      component: () => import('pages/studio/works/WorkRootPage.vue'),

    },
    {
      path: '/works/:pid/:pv_id',
      component: () => import('pages/studio/works/WorkFolderPage'),
      meta: {
        notShowTab: true
      }

    },
    //进度
    {
      path: '/progress/:pid/',
      component: () => import('pages/studio/progress/ProgressIndexPage'),

    },
    //预演
    {
      path: '/recce/:pid',
      component: () => import('layouts/studio/RecceLayout'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/ReccePage.vue')
        }
      ]

    },
    //文案
    {
      path: '/doc/:pid',
      component: () => import('layouts/studio/DocLayout'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/DocPage.vue')
        }
      ]

    },
    //脚本
    {
      path: '/script/:pid',
      component: () => import('layouts/studio/ScriptLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/ScriptPage.vue')
        }
      ]

    },
    //拍摄通告
    {
      path: '/shotplan/:pid',
      component: () => import('layouts/studio/ShotplanLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/ShotplanPage.vue')
        }
      ]

    },
    //素材列表
    {
      path: '/videolist/:pid',
      component: () => import('layouts/studio/VideolistLayout'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/VideolistPage.vue')
        },
        {
          path: '/m/videolist/:pid',
          component: () => import('pages/studio/workbench/VideolistPageM.vue')
        }
      ]

    },
    //音乐库
    {
      path: '/music/:pid',
      component: () => import('layouts/studio/MusicLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/MusicPage.vue')
        }
      ]

    },
    //语音识别
    {
      path: '/asr/:pid',
      component: () => import('layouts/studio/AsrLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/AsrPage.vue')
        }
      ]

    },
    //特效库
    {
      path: '/effect/:pid',
      component: () => import('layouts/studio/EffectLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/EffectPage.vue')
        }
      ]

    },
    //监看
    {
      path: '/monitor/:pid',
      component: () => import('layouts/studio/MonitorLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('pages/studio/workbench/MonitorPage.vue')
        }
      ]

    },
    {
      path: '/price/:pid',
      component: () => import('src/layouts/studio/PriceLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('src/pages/studio/workbench/PricePage.vue')
        }
      ]

    },
    {
      path: '/settle/:pid',
      component: () => import('src/layouts/studio/SettleLayout.vue'),
      children: [
        {
          path: '',
          component: () => import('src/pages/studio/workbench/SettlePage.vue')
        }
      ]

    },
    ]
  },
  //审阅页面ReviewLayout
  {
    path: '/file/:work_id',
    component: () => import('layouts/ReviewLayout.vue'),
    children: [
      {
        path: '',
        component: () => import('pages/studio/ReviewPage.vue'),

      },
      {
        path: '/m/file/:work_id',
        component: () => import('pages/studio/ReviewPhonePage.vue'),

      }

    ]

  },

  //项目管理中心ManagerLayout
  {
    path: '/manager',
    component: () => import('layouts/ManagerLayout.vue'),
    children: [
      {
        path: '',
        component: () => import('pages/manager/ManagerIndex.vue'),

      },


    ]

  },


  ////项目工作间单页面
  {
    path: '',
    component: () => import('layouts/SinglePageLayout.vue'),
    children: [
      {
        path: '/member/:pid',
        component: () => import('pages/singlePage/MemberPage.vue'),

      },



    ]

  },
  //////分享单页面，无需登录即可查看
  {
    path: '',
    component: () => import('layouts/SharePageLayout.vue'),
    children: [

      {
        path: '/quotation/:q_id',
        component: () => import('src/pages/singlePage/QuotationPage.vue'),

      },


    ]

  },

  //oa系统单页面
  {
    path: '',
    component: () => import('layouts/OaSinglePageLayout.vue'),
    children: [
      {
        path: '/reimburse',
        component: () => import('pages/app/ReimBursePage.vue'),

      },
      {
        path: '/quote',
        component: () => import('src/pages/app/quote/QuotePage.vue'),

      },
      {
        path: '/quote/:q_id',
        component: () => import('src/pages/app/quote/QuoteInfoPage.vue'),

      },
      {
        path: '/computer',
        component: () => import('src/pages/app/computer/ComputerPage.vue'),

      },


    ]

  },
  {
    path: '/codepage',
    component: () => import('pages/codepage')
  },
  {
    path: '/qwcodepage',
    component: () => import('pages/qwCodePage')
  },
  //oa系统工作台展示页面
  {
    path: '/workbench',
    component: () => import('pages/singlePage/workbench.vue')
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '*',
    name: 'errorPage',
    component: () => import('pages/Error404.vue')
  }
]
export default routes
